#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <phonon/VideoWidget>
#include <phonon/AudioOutput>
#include <phonon/SeekSlider>
#include <phonon/VolumeSlider>
#include <phonon/MediaObject>
#include <QLabel>
#include <QPushButton>
#include <QListWidget>
#include <QList>
#include <QUrl>


class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
private slots:
    void addFiles();
    void addDir();
    void playVideo();
    void playNext();
    void playLast();
    void playByDoubleClick();

public:
    Phonon::MediaObject *media;
    Phonon::VideoWidget *videoWidget;
    Phonon::AudioOutput *audio;
    Phonon::VolumeSlider *volumeSlider;
    Phonon::SeekSlider *seekSlider;

    QLabel *volumeLabel;
    QPushButton *addFileButton;
    QPushButton *addDirButton;
    QPushButton *clearListButton;
    QPushButton *playButton;
    QPushButton *nextButton;
    QPushButton *lastButton;
    QListWidget *fileList;
    QLabel *printFileName;

    QStringList *files;
    int currentPlay;
    QListWidgetItem *doubleClicked;

};

#endif // MAINWINDOW_H
